Optimal. Leaf size=247 \[ \frac{\sqrt{2} a^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{d^{5/2} f}-\frac{\sqrt{2} a^2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{d \tan (e+f x)}}{\sqrt{d}}+1\right )}{d^{5/2} f}-\frac{4 a^2}{d^2 f \sqrt{d \tan (e+f x)}}-\frac{a^2 \log \left (\sqrt{d} \tan (e+f x)-\sqrt{2} \sqrt{d \tan (e+f x)}+\sqrt{d}\right )}{\sqrt{2} d^{5/2} f}+\frac{a^2 \log \left (\sqrt{d} \tan (e+f x)+\sqrt{2} \sqrt{d \tan (e+f x)}+\sqrt{d}\right )}{\sqrt{2} d^{5/2} f}-\frac{2 a^2}{3 d f (d \tan (e+f x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.235596, antiderivative size = 247, normalized size of antiderivative = 1., number of steps used = 14, number of rules used = 11, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.44, Rules used = {3542, 12, 3474, 3476, 329, 297, 1162, 617, 204, 1165, 628} \[ \frac{\sqrt{2} a^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{d^{5/2} f}-\frac{\sqrt{2} a^2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{d \tan (e+f x)}}{\sqrt{d}}+1\right )}{d^{5/2} f}-\frac{4 a^2}{d^2 f \sqrt{d \tan (e+f x)}}-\frac{a^2 \log \left (\sqrt{d} \tan (e+f x)-\sqrt{2} \sqrt{d \tan (e+f x)}+\sqrt{d}\right )}{\sqrt{2} d^{5/2} f}+\frac{a^2 \log \left (\sqrt{d} \tan (e+f x)+\sqrt{2} \sqrt{d \tan (e+f x)}+\sqrt{d}\right )}{\sqrt{2} d^{5/2} f}-\frac{2 a^2}{3 d f (d \tan (e+f x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3542
Rule 12
Rule 3474
Rule 3476
Rule 329
Rule 297
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int \frac{(a+a \tan (e+f x))^2}{(d \tan (e+f x))^{5/2}} \, dx &=-\frac{2 a^2}{3 d f (d \tan (e+f x))^{3/2}}+\frac{\int \frac{2 a^2 d}{(d \tan (e+f x))^{3/2}} \, dx}{d^2}\\ &=-\frac{2 a^2}{3 d f (d \tan (e+f x))^{3/2}}+\frac{\left (2 a^2\right ) \int \frac{1}{(d \tan (e+f x))^{3/2}} \, dx}{d}\\ &=-\frac{2 a^2}{3 d f (d \tan (e+f x))^{3/2}}-\frac{4 a^2}{d^2 f \sqrt{d \tan (e+f x)}}-\frac{\left (2 a^2\right ) \int \sqrt{d \tan (e+f x)} \, dx}{d^3}\\ &=-\frac{2 a^2}{3 d f (d \tan (e+f x))^{3/2}}-\frac{4 a^2}{d^2 f \sqrt{d \tan (e+f x)}}-\frac{\left (2 a^2\right ) \operatorname{Subst}\left (\int \frac{\sqrt{x}}{d^2+x^2} \, dx,x,d \tan (e+f x)\right )}{d^2 f}\\ &=-\frac{2 a^2}{3 d f (d \tan (e+f x))^{3/2}}-\frac{4 a^2}{d^2 f \sqrt{d \tan (e+f x)}}-\frac{\left (4 a^2\right ) \operatorname{Subst}\left (\int \frac{x^2}{d^2+x^4} \, dx,x,\sqrt{d \tan (e+f x)}\right )}{d^2 f}\\ &=-\frac{2 a^2}{3 d f (d \tan (e+f x))^{3/2}}-\frac{4 a^2}{d^2 f \sqrt{d \tan (e+f x)}}+\frac{\left (2 a^2\right ) \operatorname{Subst}\left (\int \frac{d-x^2}{d^2+x^4} \, dx,x,\sqrt{d \tan (e+f x)}\right )}{d^2 f}-\frac{\left (2 a^2\right ) \operatorname{Subst}\left (\int \frac{d+x^2}{d^2+x^4} \, dx,x,\sqrt{d \tan (e+f x)}\right )}{d^2 f}\\ &=-\frac{2 a^2}{3 d f (d \tan (e+f x))^{3/2}}-\frac{4 a^2}{d^2 f \sqrt{d \tan (e+f x)}}-\frac{a^2 \operatorname{Subst}\left (\int \frac{\sqrt{2} \sqrt{d}+2 x}{-d-\sqrt{2} \sqrt{d} x-x^2} \, dx,x,\sqrt{d \tan (e+f x)}\right )}{\sqrt{2} d^{5/2} f}-\frac{a^2 \operatorname{Subst}\left (\int \frac{\sqrt{2} \sqrt{d}-2 x}{-d+\sqrt{2} \sqrt{d} x-x^2} \, dx,x,\sqrt{d \tan (e+f x)}\right )}{\sqrt{2} d^{5/2} f}-\frac{a^2 \operatorname{Subst}\left (\int \frac{1}{d-\sqrt{2} \sqrt{d} x+x^2} \, dx,x,\sqrt{d \tan (e+f x)}\right )}{d^2 f}-\frac{a^2 \operatorname{Subst}\left (\int \frac{1}{d+\sqrt{2} \sqrt{d} x+x^2} \, dx,x,\sqrt{d \tan (e+f x)}\right )}{d^2 f}\\ &=-\frac{a^2 \log \left (\sqrt{d}+\sqrt{d} \tan (e+f x)-\sqrt{2} \sqrt{d \tan (e+f x)}\right )}{\sqrt{2} d^{5/2} f}+\frac{a^2 \log \left (\sqrt{d}+\sqrt{d} \tan (e+f x)+\sqrt{2} \sqrt{d \tan (e+f x)}\right )}{\sqrt{2} d^{5/2} f}-\frac{2 a^2}{3 d f (d \tan (e+f x))^{3/2}}-\frac{4 a^2}{d^2 f \sqrt{d \tan (e+f x)}}-\frac{\left (\sqrt{2} a^2\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{d^{5/2} f}+\frac{\left (\sqrt{2} a^2\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{d^{5/2} f}\\ &=\frac{\sqrt{2} a^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{d^{5/2} f}-\frac{\sqrt{2} a^2 \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{d^{5/2} f}-\frac{a^2 \log \left (\sqrt{d}+\sqrt{d} \tan (e+f x)-\sqrt{2} \sqrt{d \tan (e+f x)}\right )}{\sqrt{2} d^{5/2} f}+\frac{a^2 \log \left (\sqrt{d}+\sqrt{d} \tan (e+f x)+\sqrt{2} \sqrt{d \tan (e+f x)}\right )}{\sqrt{2} d^{5/2} f}-\frac{2 a^2}{3 d f (d \tan (e+f x))^{3/2}}-\frac{4 a^2}{d^2 f \sqrt{d \tan (e+f x)}}\\ \end{align*}
Mathematica [C] time = 1.32303, size = 229, normalized size = 0.93 \[ -\frac{a^2 (\cot (e+f x)+1)^2 \left (48 \sin ^2(e+f x) \, _2F_1\left (-\frac{1}{4},1;\frac{3}{4};-\tan ^2(e+f x)\right )+4 \sin (2 (e+f x)) \, _2F_1\left (-\frac{3}{4},1;\frac{1}{4};-\tan ^2(e+f x)\right )+3 \sqrt{2} \cos ^2(e+f x) \tan ^{\frac{5}{2}}(e+f x) \left (2 \tan ^{-1}\left (1-\sqrt{2} \sqrt{\tan (e+f x)}\right )-2 \tan ^{-1}\left (\sqrt{2} \sqrt{\tan (e+f x)}+1\right )+\log \left (\tan (e+f x)-\sqrt{2} \sqrt{\tan (e+f x)}+1\right )-\log \left (\tan (e+f x)+\sqrt{2} \sqrt{\tan (e+f x)}+1\right )\right )\right )}{12 d^2 f \sqrt{d \tan (e+f x)} (\sin (e+f x)+\cos (e+f x))^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.021, size = 216, normalized size = 0.9 \begin{align*} -{\frac{{a}^{2}\sqrt{2}}{2\,f{d}^{2}}\ln \left ({ \left ( d\tan \left ( fx+e \right ) -\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) \left ( d\tan \left ( fx+e \right ) +\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}}-{\frac{{a}^{2}\sqrt{2}}{f{d}^{2}}\arctan \left ({\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}}+{\frac{{a}^{2}\sqrt{2}}{f{d}^{2}}\arctan \left ( -{\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}}-{\frac{2\,{a}^{2}}{3\,df} \left ( d\tan \left ( fx+e \right ) \right ) ^{-{\frac{3}{2}}}}-4\,{\frac{{a}^{2}}{f{d}^{2}\sqrt{d\tan \left ( fx+e \right ) }}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.97227, size = 1918, normalized size = 7.77 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} a^{2} \left (\int \frac{1}{\left (d \tan{\left (e + f x \right )}\right )^{\frac{5}{2}}}\, dx + \int \frac{2 \tan{\left (e + f x \right )}}{\left (d \tan{\left (e + f x \right )}\right )^{\frac{5}{2}}}\, dx + \int \frac{\tan ^{2}{\left (e + f x \right )}}{\left (d \tan{\left (e + f x \right )}\right )^{\frac{5}{2}}}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.25776, size = 336, normalized size = 1.36 \begin{align*} -\frac{\sqrt{2} a^{2}{\left | d \right |}^{\frac{3}{2}} \arctan \left (\frac{\sqrt{2}{\left (\sqrt{2} \sqrt{{\left | d \right |}} + 2 \, \sqrt{d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt{{\left | d \right |}}}\right )}{d^{4} f} - \frac{\sqrt{2} a^{2}{\left | d \right |}^{\frac{3}{2}} \arctan \left (-\frac{\sqrt{2}{\left (\sqrt{2} \sqrt{{\left | d \right |}} - 2 \, \sqrt{d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt{{\left | d \right |}}}\right )}{d^{4} f} + \frac{\sqrt{2} a^{2}{\left | d \right |}^{\frac{3}{2}} \log \left (d \tan \left (f x + e\right ) + \sqrt{2} \sqrt{d \tan \left (f x + e\right )} \sqrt{{\left | d \right |}} +{\left | d \right |}\right )}{2 \, d^{4} f} - \frac{\sqrt{2} a^{2}{\left | d \right |}^{\frac{3}{2}} \log \left (d \tan \left (f x + e\right ) - \sqrt{2} \sqrt{d \tan \left (f x + e\right )} \sqrt{{\left | d \right |}} +{\left | d \right |}\right )}{2 \, d^{4} f} - \frac{2 \,{\left (6 \, a^{2} d \tan \left (f x + e\right ) + a^{2} d\right )}}{3 \, \sqrt{d \tan \left (f x + e\right )} d^{3} f \tan \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]